Skip to content

Build macOS Intel after merge instead of on pull requests - #141

Merged
leonardoaraujosantos merged 1 commit into
mainfrom
ci/intel-on-main
Nov 18, 2026
Merged

leonardoaraujosantos merged 1 commit into
mainfrom
ci/intel-on-main

Conversation

@leonardoaraujosantos

Copy link
Copy Markdown
Contributor

Why

GitHub's macOS Intel runners (macos-15-intel) queue for 1–2 hours, so the x86_64-apple-darwin build and the Intel legs of the native proof workflows dominate how long every pull request waits for CI. Everything else finishes in minutes.

What moves where

Workflow Pull request Push to main workflow_dispatch
ci.yml → Build (platforms) 7 targets (no x86_64-apple-darwin) all 8 n/a
plugin-bootstrap-environment.yml no Intel Intel Intel
plugin-native-launcher.yml no Intel Intel Intel
plugin-package-copy.yml no Intel Intel Intel
plugin-admission-proof.yml macos-15 only Intel Intel
plugin-confinement-proof.yml (native, macos-signing-candidate, macos-signing-runtime) no Intel Intel Intel
non-git-snapshot-proof.yml no Intel Intel (new push: main trigger, same paths) Intel
release.yml unchanged unchanged unchanged

plugin-confinement-proof.yml → macos-native-gap already runs only on workflow_dispatch, so it is untouched.

How

  • ci.yml: the 8 build targets now live in one checked-in list, .github/build-targets.json (same order as release_assets.ALL_TARGETS). The changes job emits it as the platforms output, dropping entries marked post_merge_only (only x86_64-apple-darwin) when the event is pull_request; platforms uses include: ${{ fromJSON(needs.changes.outputs.platforms) }}. (A static exclude cannot remove an include-only entry, and a job-level if cannot read matrix, hence the generated matrix.)
  • Proof workflows (plain os: [...] matrices): exclude: - os: ${{ github.event_name == 'pull_request' && 'macos-15-intel' || 'none' }}. Partial-match exclude also drops every runtime combination of the Intel runner.

Coverage

Nothing is dropped: every Intel job still runs on each push to main, so a target or proof that fails only on Intel is found after merge and still before any tag; the release workflow builds Intel exactly as before.

Spec

New OpenSpec change build-intel-mac-after-merge modifies installation-upgrade → Release targets: every release target except x86_64-apple-darwin builds on each pull request; every release target, Intel included, builds on each push to main. Synced into openspec/specs/installation-upgrade/spec.md with a new scenario. The completed release-without-windows change, whose delta of the same requirement was already synced, is archived (--skip-specs) so its stale MODIFIED block no longer conflicts. CONTRIBUTING.md → What CI checks describes the split.

Tests

scripts/tests/test_release_workflow.py:

  • the CI build list equals release_assets.ALL_TARGETS and platforms builds from it;
  • only x86_64-apple-darwin is post_merge_only;
  • runs the workflow's own jq filter: push yields all 8 targets, pull_request yields all but x86_64-apple-darwin (fails if the filter is weakened — checked locally).

Local: actionlint (only the two pre-existing shellcheck findings that also exist on main), python3 -m unittest discover -s scripts/tests, openspec validate --all --strict (111 passed), spec_lint.py (0 errors), spec_inventory.py --check (ROADMAP unchanged).

PR CI evidence

This PR touches every affected workflow, so they all run on it; see the comment below for the job list showing no macos-15-intel / x86_64-apple-darwin jobs were scheduled.

GitHub's macos-15-intel runners queue for 1-2 hours and dominate PR CI time.

- ci.yml reads the build matrix from .github/build-targets.json; the changes
  job drops post_merge_only entries (x86_64-apple-darwin) on pull requests,
  pushes to main build all 8 targets
- proof workflows exclude macos-15-intel on pull_request and keep it on push
  to main and workflow_dispatch; non-git-snapshot-proof gains a push trigger
- release.yml unchanged
- test_release_workflow checks the list against ALL_TARGETS and runs the jq
  filter for both events
- OpenSpec change build-intel-mac-after-merge (installation-upgrade Release
  targets); archive the completed release-without-windows change, whose
  delta of the same requirement was already synced
@leonardoaraujosantos

Copy link
Copy Markdown
Contributor Author

PR CI evidence: the runs triggered by this PR schedule no macos-15-intel or x86_64-apple-darwin jobs.

  • CI → Build: aarch64-apple-darwin, x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, x86_64-unknown-linux-musl, aarch64-unknown-linux-musl, x86_64-pc-windows-msvc, aarch64-pc-windows-msvc (7 of 8; Intel waits for main)
  • Plugin package copy: windows-latest, macos-15, ubuntu-24.04-arm, ubuntu-24.04
  • Plugin image admission proof: macos-15
  • Plugin confinement proof: macos-15 / ubuntu-24.04 / ubuntu-24.04-arm legs only (plus the dispatch-only staged-system diagnostic, skipped)
  • Snapshot native proof: macos-15, ubuntu-24.04, ubuntu-24.04-arm
  • Plugin bootstrap environment: windows-latest, macos-15, ubuntu-24.04, ubuntu-24.04-arm
  • Packaged plugin native entry: macos-15, ubuntu-24.04-arm, ubuntu-24.04, windows-latest

@leonardoaraujosantos
leonardoaraujosantos merged commit 1579ad8 into main Nov 18, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant